//
//  Songs.m
//  CloudKaraoke
//
//  Created by Mac Book Pro on 3/21/13.
//
//

#import "Song.h"
//#import "Playlists.h"
//#import "PSoncaID.h"
//#import "KarToc.h"

@implementation Song
@synthesize encryptedID;
@synthesize id;
@synthesize index5; 
@synthesize name;
@synthesize shortname;
@synthesize titleRaw;
@synthesize lyric;
@synthesize remix;
@synthesize hotSong;
@synthesize newSong;
@synthesize mediaType;
@synthesize favourite; 
@synthesize musicianName;
@synthesize singerName;
@synthesize sort;
@synthesize nameWords;
@synthesize singerVocal; 

@synthesize languageinfo;
@synthesize musicianinfo;
@synthesize singerinfo;
@synthesize typeinfo;

- (BOOL) purchased
{
//    return (free== 1 || [PSoncaID usertype]);
    return true;
}

- (BOOL) isNewSong
{
    return (newSong == 1); 
}

- (BOOL) isSinger
{
    return mediaType == 2;
}

- (BOOL) isRemix
{
    return (remix == 1);
}

- (BOOL) isHotSong
{
    return hotSong == 1;
}

- (void) dealloc
{
    encryptedID = nil; 
    musicianName = nil; 
    singerName = nil;
    lyric = nil;
    name = nil;
    shortname = nil;
    titleRaw = nil; 
}
@end
